package es.unex.meigas.gui;

import javax.swing.JPanel;

import es.unex.meigas.core.ConcentricPlot;
import es.unex.meigas.core.FixedRadiusPlot;
import es.unex.meigas.core.Plot;
import es.unex.meigas.filters.FiltersPanel;

public class PlotPanel extends DasocraticElementPanel {

	public PlotPanel (Plot plot, MeigasPanel meigasPanel){

		super(plot, meigasPanel);

	}

	protected void initializeContent(){

		m_Panels = new JPanel[7];
		if (m_Element instanceof FixedRadiusPlot){
			m_Panels[0] = new FixedRadiusPlotParametersPanel((FixedRadiusPlot)m_Element,
								m_MeigasPanel);
		}
		else if (m_Element instanceof ConcentricPlot){
			m_Panels[0] = new ConcentricPlotParametersPanel((ConcentricPlot)m_Element,
								m_MeigasPanel);
		}
		m_Panels[1] = new NotesPanel(m_Element, m_MeigasPanel);
		m_Panels[2] = new RegenerationPanel((Plot) m_Element, m_MeigasPanel);
		m_Panels[3] = new SummaryPanel(m_Element,m_MeigasPanel);
		m_Panels[4] = new DistributionPanel(m_Element, m_MeigasPanel);
		m_Panels[5] = new GeographicRenderingPanel(m_Element, m_MeigasPanel);
		m_Panels[6] = new FiltersPanel(m_Element, m_MeigasPanel);
	}

	protected void updateContent() {}


}
